package com.example.pattern.utils

import android.icu.text.SimpleDateFormat
import java.util.Date
import java.util.Locale

object TimeUtils {
    fun time():String{
        val time  = SimpleDateFormat("yyyy.MM.dd HH:mm:ss", Locale.CHINA).format(Date())
        return time
    }
    fun timeName():String{
        val time = SimpleDateFormat("yyyyMMddHHmmss", Locale.CHINA).format(Date())
        return "{$time}.jpg"
    }
}